package com.dsp.util;

import javax.faces.context.FacesContext;
import javax.servlet.http.HttpServletRequest;

public abstract class AbstractManager {
	protected HttpServletRequest getRequest() {
		Object request = FacesContext.getCurrentInstance().getExternalContext().getRequest();
		if (request instanceof HttpServletRequest) {
			return (HttpServletRequest) request;
		} else {
			throw new RuntimeException ("Oh Fuck!");
		}
	}
}
